<div class="template-wrapper">
<?php
    foreach($data as $key => $item) {
        $tmp = unserialize($item->info);
       
        print '<div class="template"><a class="'.$item->name.'" href="'.url('set-template', array('query' => 'name='.$item->name)).'">
        <h3>'.$item->name.'</h3>
        <p>'.$tmp['description'].'</p>
        <img src="'.$tmp['screenshot'].'" /></a>
        </div>';
    }
?>
</div>